package jmujava2;
import java.util.Scanner;
public class Main {
    private static Scanner in;
    public static void main(String[] args)
    {
        int n,x,y;
        in=new Scanner(System.in);
        while(true)
        {
            StringBuilder s=new StringBuilder("");
            n=in.nextInt();
            x=in.nextInt();
            y=in.nextInt();
            for(int i=0;i<n;i++)
            {
                s.append(i);
            }
            if(x<y&&x>0)
            {
                System.out.println(s.substring(x,y));
            }
            else if(x>y&&y>0)
            {
                System.out.println(s.substring(y,x));
            }
        }
    }
}
